#ifndef ENOTIFY_H
#define ENOTIFY_H

#include "smtp.h"
#include "email.h"
#include "tracksql.h"

class EmailNotification : public Email
{
	public:
        EmailNotification( Library::KeywordSubstitutor* pSubstitutor, TrackSQL* sql );

		bool8 sendEndOfSessionEmailMsg(SESSIONID);
		bool8 sendInvalidPayoutMsg(const String& msg);

	protected:
		bool8 verifyEmailAddress( const String& sEmailAddy );
		bool8 send( const String& msg, SMTP::Header& hdr );

		enum SystemNotificationIDs	{
			ENDOFSESSION = 1,
			INVALIDPAYOUT
		};
};

#endif
